package cn.tutu.blockchain.sysuser.service;

import java.util.List;

import com.github.pagehelper.PageInfo;

import cn.tutu.blockchain.common.Page;
import cn.tutu.blockchain.sysuser.entity.SysUser;

public interface SysUserService {

	/**
	 * 根据手机查找
	 * 
	 * @param username
	 * @return
	 */
	public SysUser findByPhone(String username);

	/**
	 * 用户注册
	 * 
	 * @param sysuser
	 */
	public void create(SysUser sysuser);

	/**
	 * 用户基本信息修改
	 * 
	 * @param sysUser
	 */
	public void update(SysUser sysUser);

	/**
	 * 修改登录状态
	 * 
	 * @param sysuser
	 */
	public void updateLoginStatus(SysUser sysuser);

	/**
	 * 
	 * @param sysuser
	 * 
	 */
	public void updatePwd(SysUser sysuser, String oldPwd);

	/**
	 * 
	 * @param sysuser
	 */
	public void resetPwd(SysUser sysuser);

	public SysUser getUserById(String id);

	public void removeByPhone(String phone);

	public void modifyEthIdByPhone(String phone, String ethId);

	public PageInfo<SysUser> getByRefPhone(String refPhone, Page page);

	public SysUser getById(String userId);

	public List<SysUser> getAll();

}
